package com.gopay.bis.bocom.ebank.impl;


import com.gopay.bis.bocom.ebank.operation.BocomB2cQuery;
import com.gopay.common.domain.bank.BaseMessage;
import com.gopay.common.domain.bank.bocom.ebank.pay.BocomB2cMessage;
import com.gopay.common.exception.GopayException;
import com.gopay.remote.bank.ICertHelper;
import com.gopay.remote.bank.businesses.BankService;

public class BocomB2cBankServiceImpl implements BankService {
	
	private ICertHelper bocomB2cCertHelper;
	
	private BocomB2cQuery bocomB2cCQuery;
	
	public Object sign(BaseMessage message) throws GopayException {
		return bocomB2cCertHelper.sign(message);
	}

	public Object verify(BaseMessage message) throws GopayException {
		return bocomB2cCertHelper.verify(message);
	}

	public Object query(Object obj) throws GopayException {
		BaseMessage b2cQuery = (BaseMessage) obj;
		BocomB2cMessage res = bocomB2cCQuery.query(b2cQuery);
		return res;
	}

	public ICertHelper getBocomB2cCertHelper() {
		return bocomB2cCertHelper;
	}

	public void setBocomB2cCertHelper(ICertHelper bocomB2cCertHelper) {
		this.bocomB2cCertHelper = bocomB2cCertHelper;
	}

	public void setBocomB2cCQuery(BocomB2cQuery bocomB2cCQuery) {
		this.bocomB2cCQuery = bocomB2cCQuery;
	}

	@Override
	public Object dayend(Object obj) throws GopayException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Object refund(Object obj) throws GopayException {
		// TODO Auto-generated method stub
		return null;
	}
}
